package com.demo.service.impl;

import com.demo.dao.ManagerDao;
import com.demo.pojo.Manager;
import com.demo.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ManagerServiceImpl implements ManagerService {
    @Autowired
    ManagerDao managerDao;

    public void setManagerDao(ManagerDao managerDao) {
        this.managerDao = managerDao;
    }

    @Override
    public Manager findOne(int id) {
        return managerDao.findOne(id);
    }

    @Override
    public List<Manager> findOnePage() {
        return managerDao.findOnePage();
    }

    @Override
    public int deleteOne(int id) {
        return managerDao.deleteOne(id);
    }

    @Override
    public int addOne(Map<String, Object> map) {
        return managerDao.addOne(map);
    }

    @Override
    public int changeName(Map<String, Object> map) {
        return managerDao.changeName(map);
    }


}
